<br>

<div class="pagediv1">
	<div class="backprev">
		<div class="prev"><span class="prev1">	
		{if $article_prev}
		<a href="{$article_prev->getArticleTitleURL()}">
			<img class="prev" src="{ci_config name='base_url'}themes/images/socialsmall/leftarrow.png" width="25" border="0">
				{$article_prev->article_title}</a>
			</span>
			{else}
				<span class="prev1">	
				<a href="{ci_config name='base_url'}" title="Home">Home</a>
			{/if}</span>
		</div>	
		<div class="next"><span class="prev1">
			{if $article_next}
				<a href="{$article_next->getArticleTitleURL()}">{$article_next->article_title}
			{else}
				You are at the last article
			{/if}</span><img border="0" class="prev" src="{ci_config name='base_url'}themes/images/socialsmall/rightarrow.png" width="25">
		</a></div>
	</div>

<br><br><br>

	{if $article}
		<h2>{$article->article_title}</h2>
		<div class="main-blog-infobar">by <span class="author">{$article->getArticleAuthor()}</span> <a href="{ci_config name='base_url'}rss"><img src="{ci_config name='base_url'}themes/images/socialsmall/social-rss.png" width="11" border="0"></a> on <span class="date">{$article->article_date_created->format( 'D M jS Y H:i' )}</span> </div>
	

	<br />

	<div class="main-blog-contents">{$article->article_text|utf}</div>
	{/if}
	
	<br /><br />
	
	<div class="backprev">
		<div class="prev1">If you enjoyed this article, please consider sharing it!</div>
		<div class="next">
		<a href="http://www.facebook.com/share.php?u={$article->getArticleTitleURL()}&h={$article->article_title|strip_tags}"><img border="0" title="Share this article on Facebook" class="socialshare" rel="clickable" id="icon_disabled" src="{ci_config name='base_url'}themes/images/social/facebook.png"></a>
		<a href="http://twitter.com/home/?status=Checkin' out {$article->getArticleTitleURL()} by @NaClOrg"><img border="0" title="Tweet this article" class="socialshare" rel="clickable" id="icon_disabled" src="{ci_config name='base_url'}themes/images/social/twitter.png"></a>
		<a href="http://del.icio.us/post?url={$article->getArticleTitleURL()}&title={$article->article_title|strip_tags}"><img border="0" title="Post this article on del.icio.us" class="socialshare" rel="clickable" id="icon_disabled" src="{ci_config name='base_url'}themes/images/social/delicious.png"></a>
		<a href="http://digg.com/submit?phase=2&url={$article->getArticleTitleURL()}&title={$article->article_title|strip_tags}"><img border="0" title="Digg this article" class="socialshare" rel="clickable" id="icon_disabled" src="{ci_config name='base_url'}themes/images/social/digg.png"></a>
		<a href="https://m.google.com/app/plus/x/?v=compose&content={$article->article_title|strip_tags} - {$article->getArticleTitleURL()}" onclick="window.open('https://m.google.com/app/plus/x/?v=compose&amp;content={$article->article_title|strip_tags} - {$article->getArticleTitleURL()}','gplusshare','width=450,height=300,left='+(screen.availWidth/2-225)+',top='+(screen.availHeight/2-150)+'');return false;"><img border="0" title="Share this on Google+" class="socialshare" rel="clickable" id="icon_disabled" src="{ci_config name='base_url'}themes/images/social/google.png"></a>
		</div>
	</div>
<br />
<br />
	{include file='includes/disqus.tpl'}
</div>

<div class="pagediv2">

  <div id="sidelinkcontainer">

    <div class="sidelink-events">
      <h4>ARCHIVES</h4>
      <div class="linkborder" style="text-align: left;">
      {$archives}
      </div>
    </div>
{if count($tags)}
    <div class="sidelink-events">
    
      <h4>TAGS</h4>

      <div class="linkborder">
      <ul style="text-align: left;">
      {foreach from=$tags key=tag_id item="tag" name="li"}
				<li>{$tag->tag_name}</li>
				{/foreach}
      </ul>
      </div>
    </div>
    {/if}

	<div class="sidelink-department">
      <h4>DEPARTMENTS</h4>
      <div class="linkborder">
      <div class="departmentpix"><img src="{ci_config name='base_url'}themes/images/childrendep.png" /></div>
      <div class="departmentpix"><img src="{ci_config name='base_url'}themes/images/youthdep.png" /></div>
      <div class="departmentpix"><img src="{ci_config name='base_url'}themes/images/ladep.png" /></div>
      <div class="departmentpix"><img src="{ci_config name='base_url'}themes/images/mensdep.png" /></div>
      </div>
    </div>
    
    <div class="sidelink-twitter">
      <h4>TWITTER FEEDS (<a href="http://twitter.com/{$twitterId}" title="@{$twitterId} on Twitter" target="_blank">@{$twitterId}</a>)</h4>
      <div class="linkborder">
{if isset($tweets)}
	<br>
    {foreach from=$tweets item="tweet"}
        <div class="twittext">
        {$tweet->text}
            <div class="twitlinks">
            <a href="http://twitter.com/{$tweet->user->screen_name}/status/{$tweet->id_str}" target="_blank">{$tweet->elapsedtime}</a> &bull;
            <a href="http://twitter.com/intent/tweet?in_reply_to={$tweet->id_str}" target="_blank">reply</a> &bull; 
            <a href="http://twitter.com/intent/retweet?tweet_id={$tweet->id_str}" target="_blank">retweet</a> &bull;
            <a href="http://twitter.com/intent/favorite?tweet_id={$tweet->id_str}" target="_blank">favorite</a>
            </div>
        </div>
    {/foreach}
{else}
    <p class="twittext">No tweets fetched</p>
    
      <!--temporarytweets-->
      <div class="twittext">
        It seems that everything is working. Just a little css formatting needed. @ryandupay will take care of it.
            <div class="twitlinks">
            <a href="http://twitter.com/NaClOrg/status/94721803078995968" target="_blank">5 days ago</a> &bull;
            <a href="http://twitter.com/intent/tweet?in_reply_to=94721803078995968" target="_blank">reply</a> &bull; 
            <a href="http://twitter.com/intent/retweet?tweet_id=94721803078995968" target="_blank">retweet</a> &bull;
            <a href="http://twitter.com/intent/favorite?tweet_id=94721803078995968" target="_blank">favorite</a>
             </div>
      </div>             
      <div class="twittext">
        Testing tweet for <a href = "http://evd.b3rx.co.cc" target="_blank">http://evd.b3rx.co.cc</a> tweet fetcher.
            <div class="twitlinks">
            <a href="http://twitter.com/NaClOrg/status/94721803078995968" target="_blank">5 days ago</a> &bull;
            <a href="http://twitter.com/intent/tweet?in_reply_to=94721803078995968" target="_blank">reply</a> &bull; 
            <a href="http://twitter.com/intent/retweet?tweet_id=94721803078995968" target="_blank">retweet</a> &bull; 
            <a href="http://twitter.com/intent/favorite?tweet_id=94721803078995968" target="_blank">favorite</a>
             </div>
      </div>               
     <div class="twittext">
        So the site is facing up quite well. Coded the article part of the system. We still have a long way to go, but we'll get there.
            <div class="twitlinks">
            <a href="http://twitter.com/NaClOrg/status/94721803078995968" target="_blank">5 days ago</a> &bull;
            <a href="http://twitter.com/intent/tweet?in_reply_to=94721803078995968" target="_blank">reply</a> &bull; 
            <a href="http://twitter.com/intent/retweet?tweet_id=94721803078995968" target="_blank">retweet</a> &bull; 
            <a href="http://twitter.com/intent/favorite?tweet_id=94721803078995968" target="_blank">favorite</a>
             </div>
      </div>  
     <!--temporarytweets-->

{/if}      
      <div></div>
    </div>
  </div>
  </div>
  
</div>
